//
//  BaseVC.h
//  MarryBackEnd
//
//  Created by KH_MoSi on 2020/7/29.
//  Copyright © 2020 WPP. All rights reserved.
//

#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
typedef void (^backButtonBlock) (void);
@interface BaseVC : UIViewController
@property(nonatomic,strong)UIView *naviBarView;//导航返回按钮
@property(nonatomic,strong)UIButton *naviBarBackButton;//导航底部视图
@property(nonatomic,strong)UILabel *naviBarTitleLab;//导航中间label
@property(nonatomic,strong)UIView *naviBarBottomLineView;//导航底部view
@property(nonatomic,copy)backButtonBlock backBlock;
@property(nonatomic,copy)backButtonBlock rightButtonBlock;
- (UIView *)createNaviBarWithTitle:(NSString *)title backButtonBlock:(void(^ _Nullable )(void))backButtonBlock;

@property(nonatomic,assign)UIStatusBarStyle stausBarStyle;//在viewDidLoad设定一下即可

- (UIButton *)addNaviBarRightButtonWithImageName:(NSString *)imageName backRightButtonBlock:(void(^ _Nullable)(void))rightButtonBlock;
- (UIButton *)addNaviBarRightButtonWithTitle:(NSString *)title withTitleColor:(UIColor *)titleColor backRightButtonBlock:(void(^ _Nullable)(void))rightButtonBlock;
@property(nonatomic,assign)BOOL firstLoading;
@end

NS_ASSUME_NONNULL_END
